package com.cn.stepLock.executeLambda;

import java.util.function.BiConsumer;

/**
 * @author Aaron
 * @desc
 * @createTime 2022-02-25 5:47
 * @since
 */
public class BiConsumerLambda<T,U> extends BaseConsumer<T,U> {

    private BiConsumer<T,U> biConsumer;

    public BiConsumerLambda(BiConsumer<T, U> biConsumer,T lest,U right) {
        this.biConsumer = biConsumer;
        this.left = lest;
        this.right = right;
    }

    public void execute(){
        this.biConsumer.accept(left,right);
    }
}
